package org.example.zuoye.mapper;

import org.example.zuoye.entity.Doctor;
import org.example.zuoye.entity.Patient;

import java.util.List;

/**
* @author 86198
* @description 针对表【patient】的数据库操作Mapper
* @createDate 2024-08-10 15:51:37
* @Entity org.example.zuoye.entity.Patient
*/
public interface PatientMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Patient record);

    int insertSelective(Patient record);

    Patient selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Patient record);

    int updateByPrimaryKey(Patient record);

    /**
     * 根据id删除
     * @return
     */
    int remove(Integer[] ids);

    /**
     * 多条件查询
     * @return
     */
    List<Patient> search(Patient patient);

    Patient findByPhone(String phone);
}
